package com.stormrage.entity.learn.req;

import java.io.Serializable;

import com.stormragetech.core.entity.Page;

/**
 * @Title: LeaStudentReq.java
 * @Package com.stormrage.entity.learn.req
 * @Description: 学员 请求 类
 * @author www.stormragetech.com
 * @date 2016年4月15日
 * @version V1.0
 */
public class LeaStudentReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -5611264772432454910L;

	// ------------------------------- Fields -------------------------------

	private Integer bunchId;

	private String realName;

	private Integer locked;

	private Page page;

	// ------------------------------- Fields -------------------------------

	public LeaStudentReq() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getBunchId() {
		return bunchId;
	}

	public void setBunchId(Integer bunchId) {
		this.bunchId = bunchId;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaStudentReq instance(Integer bunchId, Integer locked, Page page) {
		LeaStudentReq entity = new LeaStudentReq();
		entity.setBunchId(bunchId);
		entity.setLocked(locked);
		entity.setPage(page);
		return entity;
	}

	public static LeaStudentReq instance(LeaStudentReq req, Integer bunchId, Integer locked, Page page) {
		LeaStudentReq entity = new LeaStudentReq();
		entity.setBunchId(bunchId);
		entity.setLocked(locked);
		entity.setPage(page);
		return entity;
	}
	@Override
	public String toString() {
		return this.getClass() + " : bunchId - " + bunchId + " realName - " + realName + " locked - " + locked
				+ " page - " + page;
	}

}
